# a = 1
# while a <= 10:
#     print(a)
#     a = a+1

#计算1到100的和
a = 1
sum = 0
while a <= 100:
    sum = sum + a
    a += 1
print(sum)